package com.rongma.waterdrop.global;

import android.app.Activity;
import android.app.Application;
import android.content.Context;

/**
 * Created by RongMa on 16/5/21.
 */
public class WaterDropApplication extends Application
{
    public final boolean IS_DEBUG = true;
    private static WaterDropApplication application = new WaterDropApplication();
    private Activity activity;

    private WaterDropApplication(){}

    public static WaterDropApplication getApplication()
    {
        return application;
    }

    public Context getApplicationContext()
    {
        return getApplicationContext();
    }

    public Activity getActivity() {
        return activity;
    }

    public void setActivity(Activity activity)
    {
        this.activity = activity;
    }

    @Override
    public void onCreate() {
        super.onCreate();
        application = this;
    }
}
